package com.lagou.edu.fiegn;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "LAGOU-SERVICE-VERIFYCODE",fallback = CodeFallback.class,path = "/code")
public interface CodeServiceFeign {

    @GetMapping("validate/{email}/{code}")
    public int validate(@PathVariable("email") String email, @PathVariable("code") String code);
}